package com.hr.reactive.mono;

import com.hr.reactive.common.AbstractHttpClient;
import reactor.core.publisher.Mono;
import reactor.netty.http.client.HttpClient;

/**
 * @author Administrator
 */
public class ExternalServiceClient  extends AbstractHttpClient {

    public Mono<String> getData(){
     return    this.httpClient.get()
                .uri("/report/outdoorStatistics?endDate=2020-12-22&startDate=2020-12-22&userId=0a591adb66bd46648233562a6f8d45a2")
                .responseContent().asString()
                .next();
    }
}

